/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.pool.modelo;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class ItemProductoPoolPK implements Serializable {
    
    private int nroPool;
    private int orden;

    public ItemProductoPoolPK() {

    }

    public ItemProductoPoolPK(int nroPool, int orden) {
        this.nroPool = nroPool;
        this.orden = orden;
    }

    public int getNroPool() {
        return nroPool;
    }

    public void setNroPool(int nroPool) {
        this.nroPool = nroPool;
    }

    public int getOrden() {
        return orden;
    }

    public void setOrden(int orden) {
        this.orden = orden;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ItemProductoPoolPK other = (ItemProductoPoolPK) obj;
        if (this.nroPool != other.nroPool) {
            return false;
        }
        if (this.orden != other.orden) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 79 * hash + this.nroPool;
        hash = 79 * hash + this.orden;
        return hash;
    }

    @Override
    public String toString() {
        return "ItemProductoPoolPK{" + "nroPool=" + nroPool + "orden=" + orden + '}';
    }

    

    
}
